using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class QuitPanel : BasePanel<QuitPanel>
{
    public CustomGUIButton btnClose;
    public CustomGUIButton btnSure;
    public CustomGUIButton btnContinue;

    // Start is called before the first frame update
    void Start()
    {
        btnSure.clickEvent += () => { SceneManager.LoadScene("BeginScene"); };
        btnContinue.clickEvent += () => { HiddenMe(); };
        btnClose.clickEvent += () => { HiddenMe(); };
        HiddenMe();
    }

    // Update is called once per frame
    void Update()
    {
    }

    public override void HiddenMe()
    {
        base.HiddenMe();
        Time.timeScale = 1;
    }
}